import request from '../lib/js/request'
import { BASE_URL } from './config'

export function login(code, rawData, signature) {
  return request({
    url: `${BASE_URL}/wxlogin`,
    method: 'post',
    data: {
      code: code,
      rawData: rawData,
      signature: signature
    }
  })
}
